package cn.weakup.thread.question._synchronized;

/**
 * @author Dawn
 * @version 1.0.0
 * @desc
 * @date 2022/5/10
 */
public class SynchronizedDemo {
    public void method() {
        synchronized (this) {
            System.out.println("Method 1 start");
        }
    }

    public synchronized void method2() {
        System.out.println("Hello World!");
    }
}
